import req from './index';

export const reqHotSearch = () => {
    return req('/search/hot')
}
export const reqSearch = (keywords, type) => {
    return req(`/search?keywords=${keywords}&type=${type}`);
}
export const reqSearchSuggest = (keywords) => {
    return req.get(`/search/suggest`, {
        params: {
            keywords,
            type: 'mobile'
        }
    })
}